import plotly.figure_factory as ff
import numpy as np
# Add histogram data
x1 = ufc.B_Age
x2 = ufc.R_Age
# Group data together
hist_data = [x1, x2]
group_labels = ['B_Age', 'R_Age']
# Create distplot with custom bin_size
fig = ff.create_distplot(hist_data, group_labels, bin_size=[0, 5, 10])
fig.show()